package com.zzxy.spring12.service.impl;

import com.zzxy.spring12.service.ITeacherService;
import org.springframework.stereotype.Service;

@Service("teacherService")
public class TeacherServiceImpl implements ITeacherService {
    @Override
    public int addUser() {
        System.out.println("add user ...");
        int i = 1 / 0;
        return 11111;
    }

    @Override
    public int deleteUser() {
        System.out.println("delete user ...");
        return 1;
    }

    @Override
    public void updateUser() {
        System.out.println("update user ...");

    }
}
